#include "getavatarrequest.h"
#include "account/accountmember.h"


#include <QUrl>


GetAvatarRequest::GetAvatarRequest(const Account::Member *member) :
    Network::GetImageRequest(member->avatarUrl()),
    m_member(member)
{
}


GetAvatarRequest::~GetAvatarRequest()
{
    m_member = 0;
}


QUrl GetAvatarRequest::url() const
{
    QString imageUrl = m_member->avatarUrl();
    return QUrl(imageUrl);
}
